﻿using CommonDevelop.Scene;

namespace CommonDevelop.Operator
{
    /// <summary>
    /// 操作员处理数据--行为接口（代理模式）
    /// </summary>
    public interface IOperatorGetData
    {
        /// <summary>
        /// 登录操作
        /// </summary>
        UserInfo CheckLogin(string account, string password, out string errors);
        /// <summary>
        /// 获取用户数据
        /// </summary>
        UserInfo GetUserInfo(string userID, out string error);
        /// <summary>
        /// 用户信息追加
        /// </summary>
        UserInfo UserInfoWith(UserInfo UI);
        /// <summary>
        /// DB记录日志
        /// </summary>
        void WriteLog(LogModel model);
    }
}
